<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>
       	__PUBLIC__：当前网站的公共目录
	__APP__：当前项目的URL地址
	__GROUP__：当前分组的URL地址
	__URL__：当前模块的URL地址
	__ACTION__：当前操作的URL地址
<hr>
<p>{$name}</p><br>
<p>{$person.name}&nbsp;{$person.age}</p><br>
<p>{$obj:email}</p>
<hr>
<!--当前控制器地址-->
{$Think.server.php_self}<br>
{$Think.get.name}
{$name|strtoupper}
{$age|default="邮箱为空"}
<hr>
{$first+$twice}<br>
{$first++},{--$twice}<br>
{/*解析一维数组,offset从索引为1的元素开始，遍历3个用length*/}
<volist name='row' id='vo' offset='1' length='3'>
{$vo}<br>
</volist>
{/*解析二维数组,key就是循环索引从1开始*/}
<volist name='data' id='vo' key='i'>
    {$i}:{$vo.name},{$vo.age}<br>
</volist>
<hr>
<!--foreach来代替volist解析数组-->
<p>foreach解析1维数组</p>
<foreach name="row" item="vo">
    {$vo}<br>
</foreach>
<hr>
<p>foreach解析二维数组</p>
<foreach name="data" item="vo">
    {$vo.name},{$vo.age}<br>
</foreach>
<hr>
<php>
    echo 'asd';
    </php>
        </div>
    </body>
</html>
